﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:commonControls="clr-namespace:NASA.BeAMartian.Controls;assembly=NASA.BeAMartian"
  xmlns:local="clr-namespace:NASA.BeAMartian.Controls"
  xmlns:System="clr-namespace:System;assembly=mscorlib"
  xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">

    <!-- Foreground Colors and Brushes -->

    <!-- White -->
    <Color x:Key="ForegroundColorOne">#FFFFFFFF</Color>
    <SolidColorBrush x:Key="ForegroundColorOneBrush" Color="{StaticResource ForegroundColorOne}"/>

    <!-- Menu Text Color -->
    <Color x:Key="ForegroundColorTwo">#FF0199E0</Color>
    <SolidColorBrush x:Key="ForegroundColorTwoBrush" Color="{StaticResource ForegroundColorTwo}"/>

    <!-- Grey Text Color -->
    <Color x:Key="ForegroundColorThree">#FFE6E6E6</Color>
    <SolidColorBrush x:Key="ForegroundColorThreeBrush" Color="{StaticResource ForegroundColorThree}"/>

    <!-- Blue Text Color eg CURRENTLY MAPPING -->
    <Color x:Key="ForegroundColorFour">#FF28B5F5</Color>
    <SolidColorBrush x:Key="ForegroundColorFourBrush" Color="{StaticResource ForegroundColorFour}"/>

    <!-- Focus Color -->
    <!--<Color x:Key="ForegroundColorFive">#FF28B5F5</Color>-->
    <Color x:Key="ForegroundColorFive">#FFC9F919</Color>
    <SolidColorBrush x:Key="ForegroundColorFiveBrush" Color="{StaticResource ForegroundColorFive}"/>
    
    <!-- Blus Text on blue background Color  -->
    <Color x:Key="ForegroundColorSix">#FF03A2E4</Color>
    <SolidColorBrush x:Key="ForegroundColorSixBrush" Color="{StaticResource ForegroundColorSix}"/>

    <!-- Blus on hex inner -->
    <Color x:Key="ForegroundColorSeven">#FF06588B</Color>
    <SolidColorBrush x:Key="ForegroundColorSevenBrush" Color="{StaticResource ForegroundColorSeven}"/>

    <!-- Blus on hex outter  -->
    <Color x:Key="ForegroundColorEight">#FF086CA8</Color>
    <SolidColorBrush x:Key="ForegroundColorEightBrush" Color="{StaticResource ForegroundColorEight}"/>

    <!-- Background Colors and Brushes -->

    <!-- Black -->
    <Color x:Key="BackgroundColorOne">#FF000000</Color>
    <SolidColorBrush x:Key="BackgroundColorOneBrush" Color="{StaticResource BackgroundColorOne}"/>

    <!-- Main Background Color -->
    <Color x:Key="BackgroundColorTwo">#FF333333</Color>
    <SolidColorBrush x:Key="BackgroundColorTwoBrush" Color="{StaticResource BackgroundColorTwo}"/>

    <!-- Button Background Color -->
    <Color x:Key="BackgroundColorThree">#FF008DCF</Color>
    <SolidColorBrush x:Key="BackgroundColorThreeBrush" Color="{StaticResource BackgroundColorThree}"/>

    <!-- Button Rollover Background Color -->
    <Color x:Key="BackgroundColorFour">#FF32C0FF</Color>
    <SolidColorBrush x:Key="BackgroundColorFourBrush" Color="{StaticResource BackgroundColorFour}"/>

    <!-- Highlight Background Color -->
    <Color x:Key="BackgroundColorFive">#88073654</Color>
    <SolidColorBrush x:Key="BackgroundColorFiveBrush" Color="{StaticResource BackgroundColorFive}"/>

    <!-- Slider Background Color -->
    <Color x:Key="BackgroundColorSix">#FF054C78</Color>
    <SolidColorBrush x:Key="BackgroundColorSixBrush" Color="{StaticResource BackgroundColorSix}"/>

    <!-- Dark Background Color -->
    <Color x:Key="BackgroundColorSeven">#FF1A1A1A</Color>
    <SolidColorBrush x:Key="BackgroundColorSevenBrush" Color="{StaticResource BackgroundColorSeven}"/>

    <!-- Graphic Background Color -->
    <Color x:Key="BackgroundColorEight">#FF004C70</Color>
    <SolidColorBrush x:Key="BackgroundColorEightBrush" Color="{StaticResource BackgroundColorEight}"/>
    
    <!-- Graphic Background Color -->
    <Color x:Key="BackgroundColorNine">#FF095A8C</Color>
    <SolidColorBrush x:Key="BackgroundColorNineBrush" Color="{StaticResource BackgroundColorNine}"/>
    
    <Color x:Key="BackgroundColorTen">#AA32C0FF</Color>
    <SolidColorBrush x:Key="BackgroundColorTenBrush" Color="{StaticResource BackgroundColorTen}"/>

    <SolidColorBrush x:Key="HoverHyperlinkForegroundColorBrush" Color="#FFEBF7FF"/>
    <SolidColorBrush x:Key="HoverHyperLinkBackgroundColorBrush" Color="#FF747474"/>
    <SolidColorBrush x:Key="BodyTextColorBrush" Color="#FF313131"/>

    <!-- Background Path Graphics -->
    <Style x:Key="BackgroundPathStyle" TargetType="Path">
        <Setter Property="Fill" Value="{StaticResource ForegroundColorTwoBrush}"/>
		<Setter Property="Opacity" Value="0.3"/>
    </Style>

    <Style x:Key="BackgroundPathTwoStyle" TargetType="Path">
        <Setter Property="Fill" Value="{StaticResource ForegroundColorTwoBrush}"/>
        <Setter Property="Opacity" Value="0.3"/>
    </Style>

    <!-- LayoutRoot Grid Style -->
    <Style x:Key="LayoutRootGridStyle" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource BackgroundColorTwoBrush}"/>
    </Style>

    <!-- LayoutRoot Grid Style -->
    <Style x:Key="ContentFrameRootGridStyle" TargetType="Grid">
        <Setter Property="Width" Value="830"/>
        <!--<Setter Property="Height" Value="520"/>-->
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="TempLabelStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="52"/>
        <Setter Property="Opacity" Value="0.3"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
        <Setter Property="OpacityMask" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>

    <Style x:Key="LabelOneStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>
    
    <!-- Paragraph text -->
    <Style x:Key="LabelTwoStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="10.66"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorThreeBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="LineHeight" Value="16"/>
    </Style>

    <!-- Blue Text -->
    <Style x:Key="LabelThreeStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="13.33"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorTwoBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="LineHeight" Value="16"/>
    </Style>

    <!-- 21 Pt White Text -->
    <Style x:Key="LabelFourStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="21"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="FontStretch" Value="Condensed"/>
    </Style>

    <!-- 64 Pt White Bold Text -->
    <Style x:Key="LabelFiveStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="64"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>
    
    <!-- 13 Pt White Bold Eurostile LT Std Condensed -->
    <Style x:Key="LabelSixStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="/NASA.BeAMartian;Component/Assets/Fonts/Fonts.zip#Eurostile LT Std Condensed"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontStretch" Value="Condensed"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>

    <!-- 24 Pt White Bold Eurostile LT Std Condensed -->
    <Style x:Key="LabelSevenStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="/NASA.BeAMartian;Component/Assets/Fonts/Fonts.zip#Eurostile LT Std Condensed"/>
        <Setter Property="FontSize" Value="32"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontStretch" Value="Condensed"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>
    
    <Style x:Key="LabelEightStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>

    <Style x:Key="LabelNineStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>

    <!-- 13 Pt White Bold Eurostile LT Std Condensed -->
    <Style x:Key="LabelTenStyle" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="/NASA.BeAMartian;Component/Assets/Fonts/Fonts.zip#Eurostile LT Std Condensed"/>
        <Setter Property="FontSize" Value="24"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontStretch" Value="Condensed"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
    </Style>

    <!-- ******CONTENT PAGE STYLES****** -->
    <!-- ******************************* -->
    

    <!-- Link Style -->
    <Style x:Key="LinkStyle" TargetType="HyperlinkButton">
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="MinWidth" Value="78"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="8,4,8,4"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="HyperlinkButton">
                    <Grid x:Name="ButtonGrid" Cursor="{TemplateBinding Cursor}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="RolloverBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentText" Storyboard.TargetProperty="(TextBox.Foreground).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource ForegroundColorOne}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="RolloverBackground" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentText" Storyboard.TargetProperty="(TextBox.Foreground).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource ForegroundColorOne}"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="RolloverBackground" Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="#99003759"/>
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="RolloverBackground" Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="#990199E0"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="LinkStates">
                                <VisualState x:Name="ActiveLink">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="BackgroundChecked" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ContentTextChecked" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InactiveLink"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                       <Rectangle x:Name="RolloverBackground" RadiusX="3" RadiusY="3" Opacity="0.0">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF003759" Offset="0"/>
                                    <GradientStop Color="#FF0199E0" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle x:Name="BackgroundChecked" RadiusX="3" RadiusY="3" Opacity="0.0">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#FF003759" Offset="0"/>
                                    <GradientStop Color="#FF0199E0" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        <TextBlock x:Name="ContentText" FontFamily="Arial" FontSize="12" Text="{TemplateBinding Content}" Foreground="{StaticResource ForegroundColorTwoBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"/>
                        <TextBlock x:Name="ContentTextChecked" FontFamily="Arial" FontSize="12" Text="{TemplateBinding Content}" Foreground="{StaticResource ForegroundColorOneBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" Opacity="0"/>
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" Opacity="0" Margin="2" RadiusX="2" RadiusY="2"/>
                        <TextBlock x:Name="DisabledOverlay" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Content}" Foreground="#FFAAAAAA" Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ButtonOneStyle" TargetType="Button">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement" VerticalAlignment="Stretch" Background="Transparent" HorizontalAlignment="Stretch">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorFour}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorThree}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Background" Fill="{StaticResource BackgroundColorThreeBrush}" RadiusX="3" RadiusY="3"/>
                        <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" Opacity="0" Margin="2" RadiusX="2" RadiusY="2"/>
                   </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="ImageButtonOneStyle" TargetType="commonControls:ImageButton">
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="commonControls:ImageButton">
                    <Grid x:Name="RootElement">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageNormal" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageMouseOver" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageNormal" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageMouseDown" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="RootElement" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Image x:Name="ImageNormal" Source="{TemplateBinding ImageSourceNormal}" Stretch="None"/>
                        <Image x:Name="ImageMouseOver" Source="{TemplateBinding ImageSourceMouseOver}" Stretch="None" Visibility="Collapsed"/>
                        <Image x:Name="ImageMouseDown" Source="{TemplateBinding ImageSourceMouseDown}" Stretch="None" Visibility="Collapsed"/>
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" Opacity="0" Margin="1" RadiusX="1" RadiusY="1"/>
                   </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!--<Style x:Key="ImageRadioButtonOneStyle" TargetType="commonControls:ImageRadioButton">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="commonControls:ImageRadioButton">
                    <Grid x:Name="RootElement">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageNormal" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageMouseOver" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageNormal" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageMouseDown" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="RootElement" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageNormal" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Collapsed</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ImageChecked" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ValidationStates">
                                <VisualState x:Name="Valid"/>
                                <VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        
                                      
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                        <Image x:Name="ImageNormal" Source="{TemplateBinding ImageSourceNormal}" Stretch="None"/>
                        <Image x:Name="ImageChecked" Source="{TemplateBinding ImageSourceChecked}" Stretch="None" Visibility="Collapsed"/>
                        <Image x:Name="ImageMouseOver" Source="{TemplateBinding ImageSourceMouseOver}" Stretch="None" Visibility="Collapsed"/>
                        <Image x:Name="ImageMouseDown" Source="{TemplateBinding ImageSourceMouseDown}" Stretch="None" Visibility="Collapsed"/>
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" Opacity="0" Margin="1" RadiusX="1" RadiusY="1"/>

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>-->
    
    <Style x:Key="HyperlinkButtonOneStyle" TargetType="HyperlinkButton">
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="HyperlinkButton">
                    <Grid x:Name="RootElement" VerticalAlignment="Stretch" Background="Transparent" HorizontalAlignment="Stretch">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Pressed"/>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Background" RadiusX="3" RadiusY="3" StrokeThickness="2">
                        	<Rectangle.Stroke>
                        		<SolidColorBrush Color="{StaticResource BackgroundColorFour}"/>
                        	</Rectangle.Stroke>
                        </Rectangle>
                        <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" Opacity="0" Margin="2" RadiusX="2" RadiusY="2"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="LinkButtonTwoStyle" TargetType="HyperlinkButton">
        <Setter Property="Foreground" Value="{StaticResource ForegroundColorOneBrush}"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Height" Value="22"/>
        <Setter Property="MinWidth" Value="78"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="8,4,8,4"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="HyperlinkButton">
                    <Grid x:Name="ButtonGrid" Cursor="{TemplateBinding Cursor}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Pressed"/>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="LinkStates">
                                <VisualState x:Name="ActiveLink">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="BackgroundChecked" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ContentTextChecked" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InactiveLink"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <Rectangle x:Name="Background" RadiusX="3" RadiusY="3" Opacity="0.8" StrokeThickness="2">
                        	<Rectangle.Stroke>
                        		<SolidColorBrush Color="{StaticResource BackgroundColorThree}"/>
                        	</Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle x:Name="BackgroundChecked" Fill="{StaticResource BackgroundColorFourBrush}" RadiusX="3" RadiusY="3" Opacity="0"/>
                        <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" Opacity="0" Margin="2" RadiusX="2" RadiusY="2"/>
                        <TextBlock x:Name="DisabledOverlay" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Content}" Foreground="#FFAAAAAA" Visibility="Collapsed"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="TextButtonOneStyle" TargetType="Button">
        <Setter Property="IsEnabled" Value="true"/>
        <Setter Property="IsTabStop" Value="true"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="0:0:0" To="MouseOver"/>
                                    <VisualTransition GeneratedDuration="0:0:0" To="Pressed"/>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="TextContentPresenter" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="{StaticResource ForegroundColorOne}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="TextContentPresenter" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00" Value="{StaticResource ForegroundColorTwo}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TextContentPresenter" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".10"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused">
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <TextBlock 
                                x:Name="TextContentPresenter" 
                                Opacity="1"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                Margin="{TemplateBinding Padding}" 
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}" 
                                Text="{TemplateBinding Content}" 
                                TextAlignment="Left"
                                TextWrapping="NoWrap"
                                FontFamily="{TemplateBinding FontFamily}"
                                FontSize="{TemplateBinding FontSize}"
                                FontWeight="{TemplateBinding FontWeight}"
                                Foreground="{StaticResource ForegroundColorSixBrush}"/>
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" Opacity="0" Margin="0" RadiusX="2" RadiusY="2"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="ThumbOneStyle" TargetType="Thumb">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Grid>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="#FF6DBDD1"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Background" Fill="{StaticResource ForegroundColorOneBrush}"/>
                        <Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" IsHitTestVisible="false" Opacity="0"/>
                        <Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" RadiusX="1" RadiusY="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="SliderOneStyle" TargetType="Slider">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Maximum" Value="1"/>
        <Setter Property="Minimum" Value="0"/>
        <Setter Property="Value" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Slider">
                    <Grid x:Name="Root">
                        <Grid.Resources>
                            <ControlTemplate x:Key="RepeatButtonTemplate">
                                <Grid x:Name="Root" Opacity="0" Background="Transparent"/>
                            </ControlTemplate>
                        </Grid.Resources>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="HorizontalTrackRectangleDisabledOverlay" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ThumbDisabledOverlay" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>

                            <Path x:Name="TrackRectangle" Fill="{StaticResource ForegroundColorTwoBrush}" Margin="0,1,0,1" Grid.Column="0" Grid.ColumnSpan="3" Stretch="UniformToFill" Data="M713.18066,428.04071 L765.43732,428.04071 L765.43732,416.13202 z"/>
                            <Path x:Name="HorizontalTrackRectangleDisabledOverlay" Fill="{StaticResource ForegroundColorOneBrush}" Margin="0,1,0,1" Grid.Column="0" Grid.ColumnSpan="3" Stretch="UniformToFill" Opacity=".55" Visibility="Collapsed" Data="M713.18066,428.04071 L765.43732,428.04071 L765.43732,416.13202 z"/>
                            <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Height="14" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="0"/>
                            <Thumb x:Name="HorizontalThumb" Style="{StaticResource ThumbOneStyle}" Height="14" Width="8" IsTabStop="True" Grid.Column="1"/>
                            <Rectangle x:Name="ThumbDisabledOverlay" Fill="White" RadiusX="2" RadiusY="2" Width="8" Opacity=".55" Visibility="Collapsed" Grid.Column="1"/>
                            <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Height="14" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="2"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>



    <Style x:Key="ScrollBarOneStyle" TargetType="ScrollBar">
        <Setter Property="MinWidth" Value="12"/>
        <Setter Property="MinHeight" Value="12"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ScrollBar">
                    <Grid x:Name="Root">
                        <Grid.Resources>
                            <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root" Background="Transparent">
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                </Grid>
                            </ControlTemplate>

                            <ControlTemplate x:Key="HorizontalIncrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetName="ButtonGlyph" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <SplineColorKeyFrame KeyTime="0" Value="{StaticResource HighlightOneColor}"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetName="ButtonGlyph" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <SplineColorKeyFrame KeyTime="0" Value="{StaticResource HighlightOneColor}"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value=".7"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="Background" Fill="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1" Opacity="1"/>
                                    <Rectangle x:Name="BackgroundMouseOver" Fill="{StaticResource ForegroundColorThreeBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle x:Name="BackgroundPressed" Fill="{StaticResource ForegroundColorTwoBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle Margin="1" x:Name="Highlight" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="ButtonGlyph" Height="7" Width="5" Fill="{StaticResource ForegroundColorOneBrush}" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z "  Stretch="Fill"/>
                                    <Rectangle x:Name="DisabledElement" Fill="#FFFFFFFF" Opacity="0"/>
                                </Grid>
                            </ControlTemplate>

                            <ControlTemplate x:Key="HorizontalDecrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetName="ButtonGlyph" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <SplineColorKeyFrame KeyTime="0" Value="#FFFFFFFF"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetName="ButtonGlyph" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <SplineColorKeyFrame KeyTime="0" Value="#FFFFFFFF"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value=".7"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="Background" Fill="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1" Opacity="1"/>
                                    <Rectangle x:Name="BackgroundMouseOver" Fill="{StaticResource ForegroundColorThreeBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle x:Name="BackgroundPressed" Fill="{StaticResource ForegroundColorTwoBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle Margin="1" x:Name="Highlight" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="ButtonGlyph" Height="7" Width="5" Fill="{StaticResource ForegroundColorOneBrush}" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z "  Stretch="Fill"/>
                                    <Rectangle x:Name="DisabledElement" Fill="#FFFFFFFF" Opacity="0"/>
                                </Grid>
                            </ControlTemplate>

                            <ControlTemplate x:Key="VerticalIncrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetName="ButtonGlyph" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <SplineColorKeyFrame KeyTime="0" Value="#FFFFFFFF"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetName="ButtonGlyph" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <SplineColorKeyFrame KeyTime="0" Value="#FFFFFFFF"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value=".7"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="Background" Fill="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1" Opacity="1"/>
                                    <Rectangle x:Name="BackgroundMouseOver" Fill="{StaticResource ForegroundColorThreeBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle x:Name="BackgroundPressed" Fill="{StaticResource ForegroundColorTwoBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle Margin="1" x:Name="Highlight" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="ButtonGlyph" Height="5" Width="7" Fill="{StaticResource ForegroundColorOneBrush}" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z "  Stretch="Fill"/>
                                    <Rectangle x:Name="DisabledElement" Fill="#FFFFFFFF" Opacity="0"/>
                                </Grid>
                            </ControlTemplate>

                            <ControlTemplate x:Key="VerticalDecrementTemplate" TargetType="RepeatButton">
                                <Grid x:Name="Root">
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <ColorAnimationUsingKeyFrames Storyboard.TargetName="ButtonGlyph" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                                        <SplineColorKeyFrame KeyTime="0" Value="#FFFFFFFF"/>
                                                    </ColorAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledElement" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value=".7"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Rectangle x:Name="Background" Fill="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1" Opacity="1"/>
                                    <Rectangle x:Name="BackgroundMouseOver" Fill="{StaticResource ForegroundColorThreeBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle x:Name="BackgroundPressed" Fill="{StaticResource ForegroundColorTwoBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                    <Rectangle Margin="1" x:Name="Highlight" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" IsHitTestVisible="false" Opacity="0"/>
                                    <Path x:Name="ButtonGlyph" Height="5" Width="7" Fill="{StaticResource ForegroundColorOneBrush}" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z " Stretch="Fill"/>
                                    <Rectangle x:Name="DisabledElement" Fill="#FFFFFFFF" Opacity="0"/>
                                </Grid>
                            </ControlTemplate>

                            <ControlTemplate x:Key="VerticalThumbTemplate" TargetType="Thumb">
                                <Grid>
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>

                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Grid Margin="1,0,1,0" x:Name="ThumbVisual">
                                        <Rectangle x:Name="Background" Fill="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1"/>
                                        <Rectangle x:Name="BackgroundMouseOver" Fill="{StaticResource ForegroundColorThreeBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                        <Rectangle x:Name="BackgroundPressed" Fill="{StaticResource ForegroundColorTwoBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                        <Rectangle Margin="1" x:Name="Highlight" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" IsHitTestVisible="false" Opacity="0"/>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>

                            <ControlTemplate x:Key="HorizontalThumbTemplate" TargetType="Thumb">
                                <Grid>
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualState x:Name="Normal"/>
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundMouseOver" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundPressed" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                        <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity">
                                                        <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Grid Margin="0,1,0,1" x:Name="ThumbVisual">
                                        <Rectangle x:Name="Background" Fill="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1"/>
                                        <Rectangle x:Name="BackgroundMouseOver" Fill="{StaticResource ForegroundColorThreeBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                        <Rectangle x:Name="BackgroundPressed" Fill="{StaticResource ForegroundColorTwoBrush}" Stroke="#00000000" StrokeThickness="1" Opacity="0"/>
                                        <Rectangle Margin="1" x:Name="Highlight" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" IsHitTestVisible="false" Opacity="0"/>
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Grid.Resources>

                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal"/>
                                <vsm:VisualState x:Name="MouseOver"/>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Grid x:Name="HorizontalRoot">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Rectangle Grid.ColumnSpan="5" Fill="Transparent" Stroke="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource HorizontalDecrementTemplate}" Margin="1" x:Name="HorizontalSmallDecrease" Width="12" Grid.Column="0" Interval="50"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalLargeDecrease" Width="0" Grid.Column="1" Interval="50"/>
                            <Thumb Background="{TemplateBinding Background}" Template="{StaticResource HorizontalThumbTemplate}" Margin="0,1,0,1" MinWidth="18" x:Name="HorizontalThumb" Width="18" Grid.Column="2"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="HorizontalLargeIncrease" Grid.Column="3" Interval="50"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource HorizontalIncrementTemplate}" Margin="1" x:Name="HorizontalSmallIncrease" Width="12" Grid.Column="4" Interval="50"/>
                        </Grid>

                        <Grid x:Name="VerticalRoot" Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <Rectangle Grid.RowSpan="5" Fill="Transparent" Stroke="{StaticResource ForegroundColorTwoBrush}" StrokeThickness="1"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource VerticalDecrementTemplate}" Height="12" Margin="1" x:Name="VerticalSmallDecrease" Grid.Row="0" Interval="50"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Height="0" x:Name="VerticalLargeDecrease" Grid.Row="1" Interval="50"/>
                            <Thumb Template="{StaticResource VerticalThumbTemplate}" Height="18" MinHeight="18" Margin="1,0,1,0" x:Name="VerticalThumb" Grid.Row="2"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" x:Name="VerticalLargeIncrease" Grid.Row="3" Interval="50"/>
                            <RepeatButton IsTabStop="False" Template="{StaticResource VerticalIncrementTemplate}" Height="12" Margin="1" x:Name="VerticalSmallIncrease" Grid.Row="4" Interval="50"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ScrollViewerOneStyle" TargetType="ScrollViewer">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="#00000000"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ScrollViewer">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2">
                        <Grid Background="{TemplateBinding Background}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <ScrollContentPresenter Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" x:Name="ScrollContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                            <Rectangle Grid.Column="1" Grid.Row="1" Fill="#00000000"/>
                            <ScrollBar Style="{StaticResource ScrollBarOneStyle}" IsTabStop="False" Margin="0,50,-1,50" x:Name="VerticalScrollBar" Width="12" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Orientation="Vertical" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{TemplateBinding VerticalOffset}" Grid.Column="1" Grid.Row="0"/>
                            <ScrollBar Style="{StaticResource ScrollBarOneStyle}" IsTabStop="False" Height="12" Margin="-1,0,-1,-1" x:Name="HorizontalScrollBar" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{TemplateBinding HorizontalOffset}" Grid.Column="0" Grid.Row="1"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <ControlTemplate x:Key="ValidationToolTipOneTemplate">
        <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="OpenStates">
                    <VisualStateGroup.Transitions>
                        <VisualTransition GeneratedDuration="0"/>
                        <VisualTransition GeneratedDuration="0:0:0.2" To="Open">
                            <Storyboard>
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="xform" Storyboard.TargetProperty="X">
                                    <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                                </DoubleAnimationUsingKeyFrames>
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
                                    <SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualTransition>
                    </VisualStateGroup.Transitions>
                    <VisualState x:Name="Closed">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Open">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="xform" Storyboard.TargetProperty="X">
                                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
                                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Grid.RenderTransform>
                <TranslateTransform x:Name="xform" X="-25"/>
            </Grid.RenderTransform>
            <Border Margin="4,4,-4,-4" Background="#052A2E31" CornerRadius="5"/>
            <Border Margin="3,3,-3,-3" Background="#152A2E31" CornerRadius="4"/>
            <Border Margin="2,2,-2,-2" Background="#252A2E31" CornerRadius="3"/>
            <Border Margin="1,1,-1,-1" Background="#352A2E31" CornerRadius="2"/>
            <Border Background="#FFDC000C" CornerRadius="2"/>
            <Border CornerRadius="2">
                <TextBlock Margin="8,4,8,4" MaxWidth="250" UseLayoutRounding="false" Foreground="White" Text="{Binding (Validation.Errors)[0].ErrorContent}" TextWrapping="Wrap"/>
            </Border>
        </Grid>
    </ControlTemplate>


    <Style x:Key="FullScreenButtonStyle" TargetType="Button">
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement" VerticalAlignment="Stretch" Background="Transparent" HorizontalAlignment="Stretch">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorFour}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorThree}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Background" Fill="{StaticResource BackgroundColorThreeBrush}" RadiusX="3" RadiusY="3"/>
                        <Path x:Name="Foreground" Fill="{StaticResource ForegroundColorOneBrush}" Stretch="Fill" Height="20.562" HorizontalAlignment="Right" Margin="0,0,-7.985,-6.682" VerticalAlignment="Bottom" Width="20.416" RenderTransformOrigin="0.220594868314935,0.222527740739252" UseLayoutRounding="False" Data="M3.5016162,17.828615 L5.001616,17.828615 L5.001616,19.328615 L6.501616,19.328615 L6.501616,20.828613 L8.0016155,20.828613 L8.0016155,22.328611 L6.501616,22.328611 L5.001616,22.328615 L3.5016162,22.328615 L3.5016162,20.828615 L3.5016162,19.328615 z M5.001616,14.828615 L6.501616,14.828615 L8.0016155,14.828615 L8.0016155,16.328615 L8.0016155,17.828615 L6.501616,17.828615 L5.001616,17.828615 L5.001616,16.328615 z M0.50161594,14.828615 L2.0016158,14.828615 L2.0016158,16.328615 L3.5016155,16.328615 L3.5016155,17.828615 L3.5016155,19.328615 L3.5016155,20.828615 L3.5016155,22.328615 L2.0016158,22.328615 L0.50161594,22.328615 L0.50161594,20.828615 L0.50161594,19.328615 L0.50161594,17.828615 L0.50161594,16.328615 z M20.665983,14.828005 L22.165981,14.828005 L22.165981,16.328005 L22.165985,17.828005 L22.165985,19.328005 L22.165985,20.828005 L22.165985,22.328005 L20.665985,22.328005 L19.165985,22.328005 L17.665985,22.328005 L16.165985,22.328005 L14.665985,22.328005 L14.665985,20.828005 L16.165985,20.828005 L16.165985,19.328005 L17.665985,19.328005 L17.665985,17.828005 L19.165985,17.828005 L19.165985,16.328005 L20.665983,16.328005 z M14.665985,14.828005 L16.165985,14.828005 L17.665985,14.828005 L17.665985,16.328005 L17.665985,17.828005 L16.165985,17.828005 L14.665985,17.828005 L14.665985,16.328005 z M8.0016155,13.328615 L9.5016155,13.328615 L9.5016155,14.828614 L8.0016155,14.828614 z M13.165985,13.328005 L14.665984,13.328005 L14.665984,14.828005 L13.165985,14.828005 z M13.162994,8.0000019 L14.662994,8.0000019 L14.662994,9.500001 L13.162994,9.500001 z M8.000001,8 L9.5,8 L9.5,9.5 L8.000001,9.5 z M20.662994,6.5000019 L22.162994,6.5000019 L22.162994,8.000001 L20.662994,8.000001 z M14.662994,6.5000019 L16.162994,6.5000019 L17.662994,6.5000019 L17.662994,8.000001 L16.162994,8.000001 L14.662994,8.000001 z M19.162994,5.0000014 L20.662994,5.0000014 L22.162994,5.0000014 L22.162994,6.5000005 L20.662994,6.5000005 L19.162994,6.5000005 z M14.662994,5.0000014 L16.162994,5.0000014 L17.662994,5.0000014 L17.662994,6.5000005 L16.162994,6.5000005 L14.662994,6.5000005 z M6.5000005,5 L8,5 L8,6.5 L8,8 L6.5000005,8 L6.5000005,6.5 z M5,5 L6.499999,5 L6.499999,6.5 L6.499999,8 L5,8 L5,6.5 z M17.662994,3.5000012 L19.162994,3.5000012 L20.662994,3.5000012 L22.162994,3.5000012 L22.162994,5.0000005 L20.662994,5.0000005 L19.162994,5.0000005 L17.662994,5.0000005 z M16.162994,0.50000131 L17.662994,0.50000131 L19.162994,0.50000131 L20.662994,0.50000131 L22.162994,0.50000131 L22.162994,2.0000005 L20.662994,2.0000005 L19.162994,2.0000005 L17.662994,2.0000005 L16.162994,2.0000005 L17.662994,2.0000017 L19.162994,2.0000017 L20.662994,2.0000017 L22.162994,2.0000017 L22.162994,3.5000005 L20.662994,3.5000005 L19.162994,3.5000005 L17.662994,3.5000005 L16.162994,3.5000005 L16.162994,2.0000041 L14.662994,2.0000041 L14.662994,0.50000453 z M6.5000005,0.5 L8,0.5 L8,1.9999996 L6.5000005,1.9999996 z M5,0.5 L6.499999,0.5 L6.499999,1.9999996 L6.499999,3.4999998 L5,3.4999998 L5,1.9999996 z M3.4999998,0.5 L4.999999,0.5 L4.999999,1.9999996 L4.999999,3.4999998 L4.999999,5 L3.4999998,5 L3.4999998,3.4999998 L3.4999998,1.9999996 z M0.5,0.5 L1.9999993,0.5 L1.9999993,1.9999996 L1.9999993,3.4999998 L1.9999993,5 L1.9999993,6.5 L2.0000002,5 L2.0000002,3.4999998 L2.0000002,1.9999996 L2.0000002,0.5 L3.4999995,0.5 L3.4999995,1.9999996 L3.4999995,3.4999998 L3.4999995,5 L3.4999995,6.5 L2.0000026,6.5 L2.0000026,8 L0.50000322,8 L0.50000322,6.5 L0.5,5 L0.5,3.4999998 L0.5,1.9999996 z">
                            <Path.Stroke>
                                <SolidColorBrush/>
                            </Path.Stroke>
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="270"/>
                                    <TranslateTransform X="-12.668" Y="0.0020000000000015518"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <Rectangle x:Name="ContentFocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="2" IsHitTestVisible="false" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="CaptionButtonStyle" TargetType="Button">
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement" VerticalAlignment="Stretch" Background="Transparent" HorizontalAlignment="Stretch">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorFour}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorThree}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Background" Fill="{StaticResource BackgroundColorThreeBrush}" RadiusX="3" RadiusY="3"/>
                        <Path x:Name="icon_cc" Fill="{StaticResource ForegroundColorOneBrush}" Stretch="Fill" Margin="4.833,8.617,4.9,8.501" RenderTransformOrigin="-1.335,1.449" UseLayoutRounding="False" Data="M4.2680001,2.3306665 C4.8345003,2.3306665 5.3253751,2.345104 5.7437186,2.4054322 C6.1620626,2.4657602 6.507875,2.571979 6.7842498,2.7555416 C6.9224377,2.8473227 7.0432658,2.9584398 7.147121,3.0928247 C7.2509766,3.2272093 7.3378592,3.3848617 7.4081564,3.5697134 C7.4784532,3.754565 7.5321641,3.9666157 7.5696754,4.2097974 C7.6071873,4.4529791 7.6285,4.7272916 7.6339998,5.0366664 L7.6339998,5.3556666 L5.368,5.3556666 L5.368,5.0366664 C5.3487501,4.8524165 5.302,4.7107916 5.2310157,4.6019945 C5.1600313,4.4931979 5.0648127,4.4172292 4.9486251,4.3642917 C4.8324375,4.3113542 4.6952815,4.2814479 4.540422,4.2647758 C4.3855624,4.2481041 4.2130003,4.2446666 4.026,4.2446666 C3.7125001,4.2446666 3.4698126,4.2687292 3.282125,4.3232136 C3.0944376,4.3776979 2.96175,4.462604 2.8682501,4.5842915 C2.77475,4.7059789 2.7204375,4.8644476 2.6894999,5.0660567 C2.6585624,5.2676663 2.651,5.5124164 2.651,5.8066664 L2.651,7.0936666 C2.651,7.4016666 2.6544375,7.6622291 2.6802187,7.8798227 C2.7060001,8.0974159 2.7541251,8.2720413 2.8435001,8.4081659 C2.9328752,8.5442915 3.0635002,8.6419163 3.2542813,8.7055101 C3.4450626,8.769104 3.6960001,8.798666 4.026,8.798666 C4.25425,8.798666 4.4529376,8.7945414 4.6225781,8.7732286 C4.7922187,8.7519159 4.9328127,8.7134161 5.0448751,8.6446657 C5.1569376,8.5759163 5.240469,8.4769163 5.2959847,8.3346033 C5.3515,8.1922913 5.3790002,8.0066662 5.3790002,7.7646666 L5.3790002,7.5226665 L7.645,7.5226665 L7.645,7.7646666 C7.645,7.9901667 7.6443124,8.210166 7.6315937,8.4231195 C7.618875,8.6360722 7.5941248,8.841979 7.546,9.0392914 C7.4978747,9.2366037 7.4263749,9.4253225 7.3201561,9.6039009 C7.2139378,9.7824793 7.073,9.9509163 6.8860002,10.107667 C6.6990004,10.261667 6.5016875,10.376479 6.2959533,10.462072 C6.0902185,10.547667 5.8760624,10.604041 5.655375,10.641167 C5.2139997,10.715416 4.7465,10.712667 4.2680001,10.712667 C3.707,10.712667 3.1838126,10.705791 2.7145939,10.648385 C2.4799843,10.619682 2.2588673,10.578346 2.0532618,10.518921 C1.8476563,10.459495 1.6575625,10.381979 1.485,10.280916 C1.3124375,10.179854 1.1574062,10.055244 1.0219257,9.9016314 C0.88644528,9.7480183 0.77051562,9.5654011 0.67615622,9.3483229 C0.58179688,9.1312447 0.50900781,8.8797054 0.45980859,8.5882483 C0.41060936,8.2967911 0.38499999,7.9654164 0.38499993,7.5886664 L0.38499993,5.4546666 C0.38499999,5.1136665 0.40785936,4.809104 0.45258978,4.5371976 C0.49732029,4.2652917 0.56392187,4.0260415 0.65140623,3.8156667 C0.73889065,3.6052916 0.84725779,3.4237914 0.97551948,3.2673852 C1.1037812,3.1109791 1.2519375,2.9796665 1.419,2.8696666 C1.5860626,2.7596664 1.7720313,2.670979 1.9759181,2.5998228 C2.1798048,2.5286665 2.4016094,2.4750416 2.6403439,2.4351666 C3.1178126,2.3554165 3.6630001,2.3306665 4.2680001,2.3306665 z M12.274668,2.3306665 C12.841167,2.3306665 13.332043,2.345104 13.750386,2.4054322 C14.16873,2.4657602 14.514542,2.571979 14.790917,2.7555416 C14.929105,2.8473227 15.049932,2.9584398 15.153789,3.0928247 C15.257644,3.2272093 15.344526,3.3848617 15.414824,3.5697134 C15.48512,3.754565 15.538831,3.9666157 15.576343,4.2097974 C15.613854,4.4529791 15.635167,4.7272916 15.640667,5.0366664 L15.640667,5.3556666 L13.374667,5.3556666 L13.374667,5.0366664 C13.355417,4.8524165 13.308667,4.7107916 13.237682,4.6019945 C13.166698,4.4931979 13.07148,4.4172292 12.955292,4.3642917 C12.839105,4.3113542 12.701948,4.2814479 12.547089,4.2647758 C12.39223,4.2481041 12.219667,4.2446666 12.032667,4.2446666 C11.719168,4.2446666 11.47648,4.2687292 11.288793,4.3232136 C11.101105,4.3776979 10.968417,4.462604 10.874917,4.5842915 C10.781417,4.7059789 10.727105,4.8644476 10.696167,5.0660567 C10.66523,5.2676663 10.657667,5.5124164 10.657667,5.8066664 L10.657667,7.0936666 C10.657667,7.4016666 10.661104,7.6622291 10.686886,7.8798227 C10.712667,8.0974159 10.760792,8.2720413 10.850167,8.4081659 C10.939543,8.5442915 11.070168,8.6419163 11.260948,8.7055101 C11.45173,8.769104 11.702667,8.798666 12.032667,8.798666 C12.260918,8.798666 12.459604,8.7945414 12.629246,8.7732286 C12.798886,8.7519159 12.93948,8.7134161 13.051542,8.6446657 C13.163605,8.5759163 13.247136,8.4769163 13.302652,8.3346033 C13.358168,8.1922913 13.385668,8.0066662 13.385668,7.7646666 L13.385668,7.5226665 L15.651667,7.5226665 L15.651667,7.7646666 C15.651667,7.9901667 15.650979,8.210166 15.638261,8.4231195 C15.625542,8.6360722 15.600792,8.841979 15.552667,9.0392914 C15.504542,9.2366037 15.433043,9.4253225 15.326823,9.6039009 C15.220605,9.7824793 15.079668,9.9509163 14.892668,10.107667 C14.705667,10.261667 14.508355,10.376479 14.30262,10.462072 C14.096886,10.547667 13.88273,10.604041 13.662042,10.641167 C13.220667,10.715416 12.753167,10.712667 12.274668,10.712667 C11.713668,10.712667 11.19048,10.705791 10.721261,10.648385 C10.486651,10.619682 10.265534,10.578346 10.059929,10.518921 C9.8543234,10.459495 9.6642303,10.381979 9.4916677,10.280916 C9.3191051,10.179854 9.1640739,10.055244 9.0285931,9.9016314 C8.8931131,9.7480183 8.7771826,9.5654011 8.6828232,9.3483229 C8.5884638,9.1312447 8.5156755,8.8797054 8.4664764,8.5882483 C8.4172764,8.2967911 8.3916674,7.9654164 8.3916674,7.5886664 L8.3916674,5.4546666 C8.3916674,5.1136665 8.4145269,4.809104 8.4592571,4.5371976 C8.5039873,4.2652917 8.5705891,4.0260415 8.6580734,3.8156667 C8.7455578,3.6052916 8.8539257,3.4237914 8.9821873,3.2673852 C9.1104488,3.1109791 9.258605,2.9796665 9.4256678,2.8696666 C9.5927296,2.7596664 9.7786989,2.670979 9.9825859,2.5998228 C10.186472,2.5286665 10.408277,2.4750416 10.647012,2.4351666 C11.12448,2.3554165 11.669668,2.3306665 12.274668,2.3306665 z"/>
                        <Rectangle x:Name="ContentFocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="2" IsHitTestVisible="false" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="PlayButtonStyle" TargetType="Button">
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement" VerticalAlignment="Stretch" Background="Transparent" HorizontalAlignment="Stretch">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorFour}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorThree}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Background" Fill="{StaticResource BackgroundColorThreeBrush}" RadiusX="3" RadiusY="3"/>
                        <Path x:Name="Foreground" Fill="{StaticResource ForegroundColorOneBrush}" Stretch="Fill" Margin="9,7.666,7.5,7.436" UseLayoutRounding="False" Data="M70.666664,413 L70.666664,424 L79.333176,418.33334 z"/>
                        <Rectangle x:Name="ContentFocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="2" IsHitTestVisible="false" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="PauseButtonStyle" TargetType="Button">
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="RootElement" VerticalAlignment="Stretch" Background="Transparent" HorizontalAlignment="Stretch">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal">
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorFour}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorThree}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Background" Fill="{StaticResource BackgroundColorThreeBrush}" RadiusX="3" RadiusY="3"/>
                        <Path x:Name="Foreground" Fill="White" Stretch="Fill" Margin="9,8" UseLayoutRounding="False" Data="M7.5000157,0.5 L11.500015,0.5 L11.500015,13.5 L7.5000157,13.5 z M0.5,0.5 L4.5,0.5 L4.5,13.5 L0.5,13.5 z"/>
                        <Rectangle x:Name="ContentFocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="2" IsHitTestVisible="false" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="MuteCheckBoxStyle" TargetType="CheckBox">
        <Setter Property="Width" Value="30"/>
        <Setter Property="Height" Value="30"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">
                    <Grid x:Name="RootElement">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorFour}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <SplineColorKeyFrame KeyTime="0" Value="{StaticResource BackgroundColorThree}"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="RootElement" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                                <VisualState x:Name="Indeterminate"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0" Value="0.75"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="ValidationStates">
                                <VisualState x:Name="Valid"/>
                                <VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationErrorElement" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsOpen">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <Rectangle x:Name="Background" Fill="{StaticResource BackgroundColorThreeBrush}" RadiusX="3" RadiusY="3"/>
                        <Path x:Name="Foreground" Fill="{StaticResource ForegroundColorOneBrush}" Stretch="Fill" Margin="9,6,10,5.875" Data="M535.75,414.25 L539.625,414.25 L544.5,409 L545.75,409 L545.75,426.125 L544.25,426.125 L539.5,420.75 L535.75,420.75 z"/>
                        <Rectangle x:Name="CheckIcon" Margin="13.502,2.784,12.498,3.112" RenderTransformOrigin="0.5,0.5" Opacity="0">
                            <Rectangle.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform Angle="45"/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Rectangle.RenderTransform>
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="Red" Offset="0"/>
                                    <GradientStop Color="#FFA50000" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle x:Name="ContentFocusVisualElement" Stroke="{StaticResource ForegroundColorFiveBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="2" IsHitTestVisible="false" Opacity="0"/>
                        <Border x:Name="ValidationErrorElement" Margin="1" Visibility="Collapsed" BorderBrush="#FFDB000C" BorderThickness="1" CornerRadius="1" ToolTipService.PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}">
                            <ToolTipService.ToolTip>
                                <ToolTip x:Name="validationTooltip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Template="{StaticResource ValidationToolTipOneTemplate}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}">
                                    <ToolTip.Triggers>
                                        <EventTrigger RoutedEvent="Canvas.Loaded">
                                            <BeginStoryboard>
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="validationTooltip" Storyboard.TargetProperty="IsHitTestVisible">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>true</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </BeginStoryboard>
                                        </EventTrigger>
                                    </ToolTip.Triggers>
                                </ToolTip>
                            </ToolTipService.ToolTip>
                            <Grid Height="10" HorizontalAlignment="Right" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10" Background="Transparent">
                                <Path Fill="#FFDC000C" Margin="0,3,0,0" Data="M 1,0 L5,0 A 2,2 90 0 1 7,2 L7,6 z"/>
                                <Path Fill="#ffffff" Margin="0,3,0,0" Data="M 0,0 L2,0 L 7,5 L7,7"/>
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>